package com.tencent.cloud.iov.recycler.flow;

import com.tencent.cloud.iov.action.Action;
import com.tencent.cloud.iov.flow.loader.ILoader;
import com.tencent.cloud.iov.flow.presenter.IPresenter;
import com.tencent.cloud.iov.recycler.item.IBlockItem;

import java.util.List;

import io.reactivex.Observer;

/**
 * @author showxiao
 * @date 2018/4/18
 */

public interface RecyclerContract {

    String ACTION_UPDATE_LIST = "update_list";

    interface View {

        /**
         * 更新列表视图
         *
         * @param blockItems    区块数据列表
         */
        @Action(ACTION_UPDATE_LIST)
        void updateList(List<IBlockItem> blockItems);

    }

    interface Presenter extends IPresenter {

    }

    interface Loader extends ILoader<Observer<List<IBlockItem>>> {

    }

}
